package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.pendingMapper;
import com.ruoyi.system.domain.pending;
import com.ruoyi.system.service.IpendingService;

/**
 * 优惠团购Service业务层处理
 * 
 * @author lzq
 * @date 2025-08-06
 */
@Service
public class pendingServiceImpl implements IpendingService 
{
    @Autowired
    private pendingMapper pendingMapper;

    /**
     * 查询优惠团购
     * 
     * @param id 优惠团购主键
     * @return 优惠团购
     */
    @Override
    public pending selectpendingById(Long id)
    {
        return pendingMapper.selectpendingById(id);
    }

    /**
     * 查询优惠团购列表
     * 
     * @param pending 优惠团购
     * @return 优惠团购
     */
    @Override
    public List<pending> selectpendingList(pending pending)
    {
        return pendingMapper.selectpendingList(pending);
    }

    /**
     * 新增优惠团购
     * 
     * @param pending 优惠团购
     * @return 结果
     */
    @Override
    public int insertpending(pending pending)
    {
        return pendingMapper.insertpending(pending);
    }

    /**
     * 修改优惠团购
     * 
     * @param pending 优惠团购
     * @return 结果
     */
    @Override
    public int updatepending(pending pending)
    {
        return pendingMapper.updatepending(pending);
    }

    /**
     * 批量删除优惠团购
     * 
     * @param ids 需要删除的优惠团购主键
     * @return 结果
     */
    @Override
    public int deletependingByIds(Long[] ids)
    {
        return pendingMapper.deletependingByIds(ids);
    }

    /**
     * 删除优惠团购信息
     * 
     * @param id 优惠团购主键
     * @return 结果
     */
    @Override
    public int deletependingById(Long id)
    {
        return pendingMapper.deletependingById(id);
    }
}
